package com.zbbt.sportslottery.app;

/**
 * 
 * @ClassName: ServerConfig
 * @Description: 与服务器接口配置
 * @author：LiZhimin
 * @date：2014-12-5 下午5:11:07
 * @version V1.0
 */
public class ServerConfig {
	/**
	 * 0 测试版本
	 */
	public static final int TEST_TYPE = 0;

	/**
	 * 1 生产版本
	 */
	public static final int PRODUCT_TYPE = 1;

	/**
	 * PRODUCT_TYPE 生产版本 <br/>
	 * TEST_TYPE 测试版本
	 */
	public static int RELEASE_TYPE = PRODUCT_TYPE;

	/**
	 * true 为debug状态，打印日志<br/>
	 * false 为上线发布状态
	 */
	public static boolean IS_DEBUG = true;

	public static String SERVER_URL;

	// public static final String SERVER_PRODUCT = "http://123.57.14.225/zgtcb";
	public static final String SERVER_PRODUCT = "http://e.zgtcb.com";
	public static final String SERVER_TEST = "http://182.92.184.102:9090";

	static {
		setUrl();
	}

	public static void setUrl() {
		if (RELEASE_TYPE == PRODUCT_TYPE) {
			SERVER_URL = SERVER_PRODUCT;
		} else {
			SERVER_URL = SERVER_TEST;
		}
	}

	// 网络连接返回码
	public final static String SUCCESS = "1";
	public final static String HTTPERROR = "9999";
	public final static String SERVERERROR = "0";

	// 新Api
	public final static String API_REGISTER = "/portal/register/registerAction!register.action";// 注册
	public final static String API_LOGIN = "/portal/login/loginAction!login.action";// 登录
	public final static String API_NEWS_LIST = "/portal/news/newsaction!getNewsList.action";// 新闻列表
	public final static String API_NEWS_FOCUS_LIST = "/portal/news/newsfocusaction!getNewsFocus.action";// 焦点新闻
	public final static String API_NEWS_PROGRAM_LIST = "/portal/common/appname!getProgramaList.action";// 获取所有栏目
	public final static String API_TZZD = "/portal/station/stationAction!getStations.action";// 投注网店列表
	public final static String API_FEED_NEW_POST = "/portal/leavemessage/leavemessageAction!addleaveMessage.action";// 提交意见反馈新接口
	public final static String API_FEED_NEW_BACK_HISTORY = "/portal/leavemessage/leavemessageAction!getleaveMessage.action";// 查看意見反饋接口
	public final static String API_MODIFYPWD = "/portal/userinfo/userInfoAction!updatePassword.action";// 修改密码
	public final static String API_FORGETPWD = "/portal/userinfo/userInfoAction!retrievePassword.action";// 忘记密码
	public final static String API_ISPHONENUMBER = "/portal/userinfo/userInfoAction!checkMobile.action";// 手机号是否存在
	public final static String API_DHJL = "/portal/activityCoupon/activityCouponAction!getCouponRedeemList.action";// 兑换记录列表
	public final static String API_HDQXQ = "/portal/activityCoupon/activityCouponAction!getCouponByNum.action";// 活动券详情（扫一扫）
	public final static String API_TYQDH = "/portal/activityCoupon/activityCouponAction!conversionCoupon.action";// 体验券兑换
	public final static String API_UPDATE = "/portal/appupdate/appupdateAction!getAppUpdateInfo.action";// 版本更新
	public final static String API_ACTION_LIST = "/portal/activity/activityAction!getActivities.action";// 活动列表
	public final static String API_TIYANQUAN = "/portal/activityCoupon/activityCouponAction!getUserCoupons.action";// 体验券列表
	public final static String API_REGISTER_GETCODE = "/portal/userinfo/userInfoAction!getUserVoiceCode.action";// 电话验证码
	public final static String API_FINDING = "/portal/news/newsfindaction!getNewsFind.action";// 发现
	public final static String API_DRAW_NOTICE = "/portal/lottery/resultsAction!getLatestOne.action";// 开奖公告(N个球)
	public final static String API_DRAW_HISTORY = "/portal/lottery/resultsAction!getHistory.action";// 开奖公告
	public final static String API_PHOTO_CHANGE = "/portal/userinfo/userInfoAction!uploadAvatar.action";// 开奖公告
	public final static String API_DRAW_FOUR = "/portal/index/indexFun!getIndexFunList.action";// 开奖公告4张图片的
	public final static String API_DRAW_NOTICE_OID = "/portal/lottery/resultsAction!getResults.action";
	public final static String API_OPEN_DETAIL = "/portal/lottery/resultsAction!getLotteryInfo.action";
	public final static String API_PROTAL_ORDERS="/portal/lottery/productOrdersAction!getProductOrders.action";
	public final static String API_MPAN="/portal/mpna/mpna!mpnaInfo.action";//手机编号与地域接口
	public final static String API_TIYANQUAN_ADD="/portal/activityCoupon/activityCouponAction!addCoupon.action";//用户体验券生成接口
	public final static String API_TIYANQUAN_GET="/portal/activityCoupon/activityCouponAction!checkCouponIsGeted.action";//用户体验券是否领取
}
